<?php
/**
 * 密码管理
 */
//session_start();
include "../util/DBUtil.php";
//$login_type = $_SESSION['login_type'];//登录类型
//$login_user = unserialize($_SESSION['login_user']);//反解序列获登录用户信息
if ($login_type!=1) {//不是管理员
    header("Location: edit_pwd.php");
}
?>
<!--上部分 班级 搜索-->
<link rel="stylesheet" href="../css/iframe_content.css">
<script src="../js/selectchang.js"></script>
<div class="head">
    <div class="select">
        <!--<span>选择班级:</span>
        <select name="" id="select" onchange="change(1)">
            <option value="-1">默认</option>
            <?php
/*            //获取所有班级
            $sql = "select * from tb_grade";
            $db = new DBUtil();
            $result = $db->query($sql);//存储所有班级信息
            echo $sql;
            print_r($result);
            foreach ($result as $item) {
                */?>
                <option value="<?php /*echo $item['id'] */?>"><?php /*echo $item['grade'] */?></option>
                <?php
/*            }
            */?>
        </select>-->
    </div>
    <!--搜索-->
    <form action="pwd_info.php?action=key" method="post">
        <input type="text" name="key" placeholder="输入要查找的关键字">
         <select name="key_type" id="">
             <option value="0" selected>学号搜索</option>
             <option value="1">名字搜索</option>
         </select>
        <button type="submit" formtarget="pwdInfo">搜索</button>
    </form>
</div>

<iframe src="pwd_info.php" frameborder="0" name="pwdInfo" class="info_iframe"></iframe>

